package cn.sciento.farm.devicemanager.service;

import cn.sciento.farm.devicemanager.dao.entity.DevCollection;
import cn.sciento.farm.devicemanager.dao.model.CollectionInfo;
import cn.sciento.farm.devicemanager.dao.model.CollectionNode;
import cn.sciento.farm.devicemanager.dao.model.HistoryGetData;
import cn.sciento.farm.devicemanager.dao.model.HistoryGetForm;

import java.util.List;

public interface CollectionService {
    int updateOnline(String eui, String node, String circuit, int up);

    DevCollection getByArg(String eui, String node, String circuit);

    DevCollection getByDeepSoilArg(String eui, String node,String name);

    int updateData(Long id, float realData, Long date);

    int insert(DevCollection deviceCollection);

    int updateById(DevCollection devCollection);

    DevCollection getById(long id);

    int deleteById(long id);

    List<DevCollection> getByEui(String eui);

    List<DevCollection> getByLandId(int land_id);

    List<CollectionNode> getHistoryById(Long collectionId, Long beginTime,Long endTime);

    List<HistoryGetData> getHistory(HistoryGetForm historyGetForm);

    List<HistoryGetData> getMonthHistory(HistoryGetForm historyGetForm);

    List<CollectionInfo> getCollectionInfo(String eui);

    List<DevCollection> getByAreaId(int areaId);

    int updateOnlineByCheck(int i);

    List<DevCollection> getByTenantId(String tenantId);
}
